Skip to content

Comments

Gamma only symmetry optimization#13

Merged
mesonepigreco merged 22 commits intomainfrom
gamma-only-symmetry-optimization
Feb 15, 2026
Merged

Gamma only symmetry optimization#13
mesonepigreco merged 22 commits intomainfrom
gamma-only-symmetry-optimization

Conversation

@mesonepigreco
Copy link
Collaborator

This branch includes a variation that allows for using a gamma-only perturbations.
This is very useful for very large supercell, when we have a gamma perturbation that speedup a lot the calculation

mesonepigreco and others added 16 commits February 8, 2026 15:23
Combine two separate Julia calls (get_perturb_f_averages_sym and
get_perturb_d2v_averages_sym) into a single get_perturb_averages_sym call,
cache sparse symmetry matrices in Julia across Lanczos steps, and remove
forced GC.gc() calls. This reduces per-call overhead from ~0.33s to ~0.08s,
improving gamma-only speedup from 4.21x to 8.22x with 320 configs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Verifies that mpirun -np 2 produces identical Lanczos coefficients
and spectral functions as serial execution, testing the GoParallel
code path in MODE_FAST_JULIA with gamma_only.

Also sets JULIA_NUM_THREADS=1 in CI for reproducible MPI tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Validates that both Lanczos formalisms produce identical Green functions
by benchmarking Re[G] and Im[G] at omega=0 and the perturbed mode frequency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This version adds the tests for the Wigner evolution.
Reduce Python-Julia bridge overhead (4.2x -> 8.2x gamma speedup)
@mesonepigreco mesonepigreco linked an issue Feb 15, 2026 that may be closed by this pull request
mesonepigreco and others added 2 commits February 15, 2026 10:49
Add docs.yml workflow to build and deploy MkDocs documentation
to GitHub Pages on pushes to main. Remove references to missing
API doc pages (tools, perturbations, parallel) from mkdocs.yml
nav to avoid build failures with --strict.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mesonepigreco mesonepigreco merged commit 3a156eb into main Feb 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exploit partial symmetrization to massively speedup the calculation

1 participant